import { NativeModules } from 'react-native';
import { isIOS } from '../../constant';

const set = ({
  name,
  value,
  domain
}: {
  name: string;
  value: string;
  domain: string;
}): void => {
  if (isIOS) {
    NativeModules.Cookie.set({ name, value, domain });
  }
};

export default {
  set
};
